﻿<%@ Page Title="Gerenciar parâmetros" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true"
    CodeBehind="GerenciarParametros.aspx.cs" Inherits="TCC_Hotel.Apresentacao.Gerencia.GerenciarParametros" %>

<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
    <style type="text/css">
        .style1
        {
            width: 280px;
        }
        .style2
        {
            width: 298px;
        }
    </style>
    <script src="../../Scripts/Mascaras.js" type="text/javascript"></script>
     <script src="../../Scripts/jquery-1.7.2.js" type="text/javascript"></script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <div>
        <asp:Label ID="lblAviso2" runat="server" Text="- Os campos com * são obrigatórios"
            ForeColor="Red"></asp:Label>
    </div>
    <p class="title-telas">
        Gerenciar parâmetros
    </p>
    <div style="margin-bottom: 0px">
       <fieldset>
            <legend id="legend3" runat="server">
                <asp:Label ID="Label3" runat="server" Text="Agenda"></asp:Label>
            </legend>
            <table style="width: 100%;">
                <tr>
                    <td class="style2">
                        <asp:Label ID="lblHorarioSMS" runat="server" Text="Horário de envio de SMS(hh:mm:ss):"></asp:Label>
                        <asp:Label ID="lblValidacaoHorarioSMS" runat="server" Text="*" ForeColor="Red"></asp:Label><br />
                        <asp:TextBox onkeyup="formataHorario(this,event);" ID="txtHorarioSMS" runat="server"
                            Width="70px" MaxLength="8"></asp:TextBox>
                    </td>
                    <td>
                        <asp:Label ID="lblHorarioReservas" runat="server" Text="Horário de exclusão de reservas antigas(hh:mm:ss):"></asp:Label>
                        <asp:Label ID="lblValidacaoHorarioReservas" runat="server" Text="*" ForeColor="Red"></asp:Label><br />
                        <asp:TextBox onkeyup="formataHorario(this,event);" ID="txtHorarioReservas" runat="server" Width="70px" MaxLength="8"></asp:TextBox>
                    </td>
                </tr>
                <tr>
                    <td class="style2">
                        <asp:Label ID="lblGerarDiaria" runat="server" Text="Horário de geração de novas diárias(hh:mm:ss):"></asp:Label>
                        <asp:Label ID="lblValidacaoGerarDiaria" runat="server" Text="*" ForeColor="Red"></asp:Label><br />
                        <asp:TextBox onkeyup="formataHorario(this,event);" ID="txtGerarDiaria" runat="server"
                            Width="70px" MaxLength="8"></asp:TextBox>
                    </td>
                    <td>
                        <asp:Label ID="lblDiasExclusaoReservas" runat="server" Text="Quantidade de dias para excluir reservas antigas:"></asp:Label>
                        <asp:Label ID="lblValidacaoGerarExclusaoReservas" runat="server" Text="*" ForeColor="Red"></asp:Label><br />
                        <asp:TextBox onkeyup="formataInteiro(this,event);" ID="txtExclusaoReservas" runat="server" Width="70px"
                            MaxLength="2"></asp:TextBox>
                    </td>
                </tr>
            </table>
        </fieldset>
        <fieldset>
            <legend id="legend1" runat="server">
                <asp:Label ID="Label1" runat="server" Text="Horários"></asp:Label>
            </legend>
            <table style="width: 100%;">
                <tr>
                    <td class="style2">
                        <asp:Label ID="lblHorarioCheckIn" runat="server" Text="Check In(hh:mm:ss):"></asp:Label>
                        <asp:Label ID="lblValidacaoGerarHorarioCheckIn" runat="server" Text="*" ForeColor="Red"></asp:Label><br />
                        <asp:TextBox onkeyup="formataHorario(this,event);" ID="txtHorarioCheckIn" runat="server" Width="70px"
                            MaxLength="8"></asp:TextBox>
                    </td>
                    <td>
                        <asp:Label ID="lblHorarioCheckOut" runat="server" Text="Check Out(hh:mm:ss):"></asp:Label>
                        <asp:Label ID="lblValidacaoGerarHorarioCheckOut" runat="server" Text="*" ForeColor="Red"></asp:Label><br />
                        <asp:TextBox onkeyup="formataHorario(this,event);" ID="txtHorarioCheckOut" runat="server" Width="70px" MaxLength="8"></asp:TextBox>
                    </td>
                </tr>               
            </table>
        </fieldset>
        <div align="left" style="width: 55%; float: left">
            <asp:Button ID="btnSalvar" runat="server" Text="Salvar" Width="100px" OnClick="btnSalvar_Click" />
        </div>
    </div>
</asp:Content>
